import request from '@/utils/request'
// 获取今日订单
export function listTodayOrder(query) {
  return request({
    url: 'order/normal/listTodayOrder',
    method: 'get',
    params: query
  })
}
// 获取今日早餐自助餐菜单
export function listTodayMorning(query) {
  return request({
    url: 'shop/buffetDetail/listTodayMorning',
    method: 'get',
    params: query
  })
}
// 获取今日中午餐 自助餐菜单
export function listTodayEvening(query) {
  return request({
    url: '/shop/buffetDetail/listTodayEvening',
    method: 'get',
    params: query
  })
}
// 最新实时库存
export function resourceAll(query) {
  return request({
    url: '/store/resource/getAll',
    method: 'get',
    params: query
  })
}
// 最新实时库存
export function latestResource(query) {
  return request({
    url: '/store/resource/latest',
    method: 'get',
    params: query
  })
}
// 最新消费数据
export function balanceToday(query) {
  return request({
    url: '/shop/customer/balance/getTodayStat',
    method: 'get',
    params: query
  })
}
// 实施项目列表
export function programData(query) {
  return request({
    url: '/social/program/program/data',
    method: 'get',
    params: query
  })
}
// 快到期合同列表
export function listDaoQi(query) {
  return request({
    url: '/social/contract/listDaoQi',
    method: 'get',
    params: query
  })
}
// 绿化考核数据
export function getLvhuaData(query) {
  return request({
    url: '/social/examine/recordDetail/lvhuaData',
    method: 'get',
    params: query
  })
}
// 保洁考核数据
export function getBaojieData(query) {
  return request({
    url: '/social/examine/recordDetail/baojieData',
    method: 'get',
    params: query
  })
}
// 安保考核数据
export function getAnbaoData(query) {
  return request({
    url: '/social/examine/recordDetail/anbaoData',
    method: 'get',
    params: query
  })
}
// 实施执行情况
export function programBing(query) {
  return request({
    url: '/social/program/program/bing',
    method: 'get',
    params: query
  })
}
// 预警信息
export function warningList(query) {
  return request({
    url: '/device/warning/listAll',
    method: 'get',
    params: query
  })
}
export function warningListTen(query) {
  return request({
    url: '/device/warning/tenList',
    method: 'get',
    params: query
  })
}

// 查询参数列表
export function listResource(query) {
  return request({
    url: '/store/resource/list',
    method: 'get',
    params: query
  })
}

// 查询参数详细
export function getResource(id) {
  return request({
    url: '/store/resource/' + id,
    method: 'get'
  })
}

// 新增参数配置
export function addResource(data) {
  return request({
    url: '/store/resource/add',
    method: 'post',
    data: data
  })
}

// 修改参数配置
export function updateResource(data) {
  return request({
    url: '/store/resource',
    method: 'put',
    data: data
  })
}

// 删除参数配置
export function delResource(configId) {
  return request({
    url: '/system/config/' + configId,
    method: 'delete'
  })
}

// 刷新参数缓存
export function refreshCache() {
  return request({
    url: '/system/config/refreshCache',
    method: 'delete'
  })
}

//首页留样数据10条
export function goodsExampleTenList(id) {
  return request({
    url: '/examine/goods/example/tenList',
    method: 'get'
  })
}
//首页食材采购信息数据10条
export function storeInTenList(id) {
  return request({
    url: '/store/in/tenList',
    method: 'get'
  })
}

//后勤保障一区垃圾统计
export function keepReportOne(query) {
  return request({
    url: '/device/keep/report/oneData',
    method: 'get',
    params: query
  })
}

//后勤保障二区垃圾统计
export function keepReportTwo(query) {
  return request({
    url: '/device/keep/report/TwoData',
    method: 'get',
    params: query
  })
}

//最新考核分数
export function socialExamineGetScore(query) {
  return request({
    url: '/social/examine/record/getScore',
    method: 'get',
    params: query
  })
}

